package com.ssh.entity;


/**
 * AbstractUser entity provides the base persistence definition of the User
 * entity. @author MyEclipse Persistence Tools
 */

public class User extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2438166882895578668L;
	// Fields

	private Integer id;
	private String username;
	private Integer password;
	private Integer phone;
	private String realname;
	
	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String userName, Integer passWord) {
		this.username = userName;
		this.password = passWord;
	}

	/** full constructor */
	public User(String userName, Integer passWord, Integer phone, String realName) {
		this.username = userName;
		this.password = passWord;
		this.phone = phone;
		this.realname = realName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getPassword() {
		return password;
	}

	public void setPassword(Integer password) {
		this.password = password;
	}

	public Integer getPhone() {
		return phone;
	}

	public void setPhone(Integer phone) {
		this.phone = phone;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", phone=" + phone
				+ ", realname=" + realname + "]";
	}
	
}